package com.tiger.auto_ops.sys.service;

import com.tiger.auto_ops.sys.dto.OrganizationDto;

import java.util.List;

/**
 * @author lidejiang
 * @date 2021/8/8
 * @note
 */
public interface OrganizationService {
    /**
     * Get data for all organizations without paging.
     * **/
    public List<OrganizationDto> getAllOrganizations(String queryString);

    /**
     * Get an organization data based on the ID.
     * **/
    public OrganizationDto getOrganizationById(int id);

    /**
     * Batch update organizational data.
     * **/
    public boolean batchUpdateOrganizations(List<OrganizationDto> organizations);

    /**
     * Update an organization data based on data.
     * **/
    public boolean updateOrganization(OrganizationDto organization);

    /**
     * Batch delete organiztional data.
     * **/
    public boolean batchDeleteOrganizations(List<OrganizationDto> organizations);
    /**
     * Delete an organization data based on data.
     * **/
    public boolean deleteOrganization(OrganizationDto organization);
}
